package com.zh.web.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import lombok.Getter;

@Getter
@ApiModel(value = "搜索类型")
public enum SearchType {

    ARTICLE("article", "文章搜索"),
    VIDEO("video", "视频搜索");
    @JsonValue
    @EnumValue
    private final String value;
    private final String desc;

    SearchType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
